package com.heima.feign.article;

import com.heima.model.user.dtos.ArticleInfoDto;
import com.heima.model.user.pojos.ApuUerFollow;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "leadnews-user")
public interface IUserClient {

    /**
     * 查询关注数据
     * @param dto
     * @return
     */
    @PostMapping("/api/v1/user/gz/{id}")
    public ApuUerFollow gz(@RequestBody ArticleInfoDto dto,@PathVariable Long id);
}
